
a{
   text-decoration: none;

   color: #4f4f4f;

}
header{
   width: 100%;
   height: 120px;
   /* background-color: pink; */
}
.header-top{
   width: 100%;
   height: 46px;
   background-color: #2a2b2e;
   background-image: url("/images/header/logo.png");
   background-size: 30px 30px;
   background-repeat: no-repeat;
   background-position: 1% center;
   position: relative;
}
.header-top>.center{
   margin: 0 auto;
   width: 1050px;
   height: 46px;
   display: flex;
   justify-content: space-between;
   align-items: center;
   font-size: 12px;
}
.header-top>.center a{
   color: #c0c0c1;
}
.header-top>.center a:hover{
   color: white;
   transition: all .5s;
}
.username,.buyShop{
   position: absolute;
   top: 50%;
   margin-top: -15px;
   right: 5%;
   width: 30px;
   height: 30px;
   background-image: url('/images/header/username.png');
   background-repeat: no-repeat;
   background-position: center center;
   background-size: cover;
   z-index: 1;
}
.username{
   
   top: 25px;
   width: 30px;
   height: 60px;
   background-size: contain;
   background-position: center top;
   // background-color: red;
   z-index: 1;
}
.buyShop{
   right: 2%;
   background-image: url('/images/header/buyShop.png');
   &-div{
      width: 300px;
      height: 400px;
      background-color: pink;
      border-radius: 10px;
      position: absolute;
      top: 100%;  
      right: 1%;
      z-index: 1;
      display: none;
   }
   &:hover +&-div{
      display: block;
   }
}
// .username:hover +.username-div{
//    display: block;
// }
.usernameBox{
   width: 30px;
   height: 150px;
   // background-color: green;
   position: absolute;
   top: 0;
   right: 5%;
}
.username-div{
      width: 80px;
      height: 100px;
      transition: all .5;
      // border-radius: 10px;
      position: absolute;
      top: 50px;  
      right: -20px;
      z-index: 4;
      margin-top: 1px;
      // display: none;
      ul{
         width: 100%;
         height: 100%;
         display: flex;
         flex-direction: column;
         align-items: center;
         justify-content: space-evenly;
         background: #fff;
         border: 1px solid #d6d6d6;
         border-radius: 8px;
         box-shadow: 0 20px 40px rgba(0,0,0,.15);
         
         li{
            cursor: pointer;
            // border-bottom: 1px solid #f5f5f5;
            border-bottom: 1px solid #f5f5f5;
            color: #616161;
            font-size: 14px;
            width: 100%;
            height: 30%;
            text-align: center;
            line-height: 30px;
            // background-color: yellowgreen;
            background-color: white;
         }
         li:hover{
            background-color: #f1f1f1;
            color: black;
         }
        
      }
}
.header-bottom{
   width: 100%;
   height: 74px;
   background-color: #ffffff;
   display: flex;
   align-items: center;
   font-size: 14px;
   color: #4f4f4f;
   border-bottom: 1px solid #e1e1e1;
   box-shadow: 0 4px 10px 0 rgba(0,0,0,.05);
   box-sizing: border-box;
   transition: height .1s ease;
   position: relative;
}
.header-bottom>.bottom{
   width: 1220px;
   height: 36px;
   margin: 0 auto;
   display: flex;
   justify-content: space-between;
   align-items: center;
   cursor: pointer;
   // margin-left: 10px;
}
.header-bottom>.bottom li{
   // background-color: purple;
   height: 72px;
   line-height: 72px;
   // width: 100%;
}
.header-bottom>.bottom li a:hover{
   color: #5079d9;
   transition: all .2s;
}
.search{
   position: relative;
   // right: 10%;
}
.abs{
   position: absolute;
   right: 18%;
}
.search-input{
   width: 330px;
   height: 36px;
   border: none;
   outline: none;
   border: 1px solid rgba(0,0,0,.08);
   border-radius: 50px;
   box-sizing: border-box;
   padding-left: 40px;
}
.search-btn{
   position: absolute;
   left:15px;
   top: 50%;
   margin-top: -10px;
   border: none;
   width: 20px;
   height: 20px;
   background-color: white;
   background-image: url("/images/header/search.png");
   background-repeat: no-repeat;
   background-size: contain;
   background-position: center center;
   cursor: pointer;
}
.header-top>.center .click{
   color: white;
   font-weight: 600;
}
.search .hide{
   display: none;
}
.click{
   color: black; font-weight: 600;
}
.bottom-div{
   width: 100%;
   height: 00px;
   box-sizing: border-box;
   border-top: 1px solid #e1e1e1;
   background-color: #ffffff;
   background-color: pink;
   position: absolute;
   top:100%;
   transition: all .5s linear;
}
.one-bottom{
   position: absolute;
   width: 100%;
   height: 200px;
   display: none;
   left: 0;
   background-color: #fff;
   top: 100%;
}
.one:hover .one-bottom{
   display: block;
}
#header-num{
   width: 15px;
   height: 15px;
   background-color: skyblue;
   position: absolute;
   text-align: center;
   border-radius: 50%;
   font-size: 12px;
   bottom: -5px;
   right: -8px;
}


